package com.jie.eureka;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@EnableEurekaServer
@RestController
public class EurekaApplication {

    public static void main(String[] args) {
        System.out.println("123");
        SpringApplication.run(EurekaApplication.class, args);
    }

    @GetMapping("/hello")
    public String hello(){
        return "hello jie ge 帅";
    }

    @GetMapping("/hello2")
    public String hello2(){
        return "hello jie ge 帅哥";
    }

    @GetMapping("/hello3")
    public String hello3(){
        System.out.println("1");
        return "hello jie ge 帅哥fafa";
    }


}
